package com.hxz.graduationdesign.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum StatusCode {

    //大多数失败都让异常处理类捉走了，结果为空的基本直接交给前端处理了

    OPERATION_SUCCESS(2000,"操作成功"),

    VIDEO_ADD_FAILED(3001,"视频数据存入失败"),
    VIDEO_DELETE_FAILED(3003,"视频删除失败"),

    COMMENT_ADD_FAILED(4001,"评论添加失败"),
    COMMENT_QUERY_NULL(4002,"视频暂无评论"),

    USER_ADD_FAILED(5001,"用户添加失败"),

    DANMU_ADD_FAILED(6001,"弹幕添加失败"),
    DANMU_QUERY_NULL(6002,"视频暂无弹幕"),

    OPERATION_FAILED(7001,"操作失败");
//    UID_ERROR_FAILED(5003,"找不到对uid应用户，用户不存在或用户已注销"),
//    BV_ERROR_FAILED(5004,"找不到bv对应视频，视频不存在或视频已下架");


    private Integer code;
    private String msg;

}
